<?php

class Article extends Module{

	public function __construct(){
		$this->author = "Tomáš Voslař";
		$this->name = "Article";
		$this->presenter = "Article";
		$this->version = "1.0";
		$this->params = "seo_title";
	}

	public function getSql(){
			
		dibi::query("CREATE TABLE IF NOT EXISTS `srcms_article` (
  				`id_article` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
  				`date` datetime NOT NULL,
  				`title` varchar(255) NOT NULL,
  				`seo_title` varchar(255) NOT NULL,
  				`content` text NOT NULL,
  				`perex` text NOT NULL,
  				`id_menu` int(10) NULL,
  				`id_file` int(10) NULL,
  				PRIMARY KEY (`id_article`)
				) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=0;
				");
			
	}

}

?>
